<?php
    class DB_Conexion {

        var $db;

        function __construct($ruta) {

            include 'DB_Parametros.php';

            if ($ruta === 1) {
                require_once '../Resources/libs/adodb/adodb.inc.php';
            }elseif ($ruta === 2) {
                require_once '../../Resources/libs/adodb/adodb.inc.php';
            }elseif ($ruta === 3) {
            require_once '../../../Resources/libs/adodb/adodb.inc.php';
        }

            $this->db = ADONewConnection($db_Server);
            $this->db->Connect($db_Host,$db_User,$db_Pass,$db_Name);
            $this->db->SetFetchMode(ADODB_FETCH_ASSOC); 
         }
    }

?>
